FROM openjdk:8-jre-slim
ARG SENTINEL_VERSION=1.8.8

# copy sentinel jar
COPY sentinel-dashboard-${SENTINEL_VERSION}.jar  app.jar


ENV JAVA_OPTS '-Dserver.port=9100 -Dcsp.sentinel.dashboard.server=localhost:9100'

RUN chmod -R +x app.jar

EXPOSE 9100

CMD java ${JAVA_OPTS} -jar app.jar